package com.justgame.project.task;

import com.justgame.project.cloud.common.DataTurbineApplication;
import com.justgame.project.cloud.common.constant.AppConstant;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
//import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@SpringCloudApplication
@ServletComponentScan("com.justgame")
@ComponentScan("com.justgame")
@EnableFeignClients({"com.justgame"})
@EnableCaching
public class TaskStartApplication {
    public static void main(String[] args) {
        DataTurbineApplication.run(AppConstant.TASK,TaskStartApplication.class,args);
    }
}
